package main

import (
	"gin/middleWare"
	"gin/servies"

	"github.com/gin-gonic/gin"
	_ "github.com/jinzhu/gorm/dialects/postgres"
)

func main() {
	r := gin.Default()
	r.Use(middleWare.Cors())
	servies.InfoSelect(r)
	servies.InfoAdd(r)
	servies.InfoInsert(r)
	servies.InfoDelete(r)
	servies.InfoUpdate(r)
	panic(r.Run(":8081")) // 监听并在 0.0.0.0:8081 上启动服务
}
